package com.dx.wx.service;

import com.ejlchina.data.Array;
import com.ejlchina.data.Mapper;
import com.yf.response.R;

import java.util.Map;

public interface DxUserService {


   R loginByWx(String code, String appId);

   R loginByPhone(String code, String unionId, String openId, String appId);

   void updateUser(Map data);

   void saveUser(Map data, String appId);

   void saveUser(String phone,String role,String topPhone,String openId,String unionId);


   //根据openId或者unionId查询用户
   Mapper findByWxId(String openId,String unionId);

    //根据手机号查询
   Mapper findByMobile(String mobile);

   //根据手机号与AppID
   Mapper findByMobile(String mobile,String appId);



   Mapper findById(String Id);

   void updateUserShop(String shopId,String[] userIds);

   //根据用户手机号查产品
   Array findGoodsByUser(Long phone);

   //找到某人同药店的用户
   Array findByShop(Long phone, String id);

   //查找与我相关的店员
   Array findMyShopUser(Long phone,Long startDate,Long endDate);

   Array findByMan(Long phone);

   void check(String phone, Integer type);

   R loginByTest(String phone, String appId);

   Array findByTop(Long phone);

   Array findByTop(Long phone,String appId);
   Array findByTopTop(Long phone,String appId);
}
